def decorator(func): 
    def make_decorator():
        print('现在开始装饰')
        func()
        print('现在结束装饰')
    return make_decorator
 
@decorator
def test():
    print('i am test')

# 执行函数
test()